package com.ronglian.jmstest;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jms.listener.DefaultMessageListenerContainer;

import com.darcy.jms.SpringPublish;

/**
 * Hello world!
 *
 */
public class App 
{
	ApplicationContext ctx = null;  	
	SpringPublish publisher ; 
	public void run() {
		ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		publisher = ctx.getBean("publisher",SpringPublish.class) ; 
		publisher.chart();
	}
    public static void main( String[] args )
    {
        App app = new App();
        app.run();
    }
}
